<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>品牌列表</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" href="__STATIC__/admin/static/css/font.css">
		<link rel="stylesheet" href="__STATIC__/admin/static/css/weadmin.css">
		<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
		<!--[if lt IE 9]>
	      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
	      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
	    <![endif]-->
	    <script type="text/javascript" src='__STATIC__/admin/static/js/jquery3.2.1.min.js'></script>
	</head>

	<body>
		<div class="weadmin-nav">
			<span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">车级管理</a>
        <a>
          <cite>车级列表</cite></a>
      </span>
			<a class="layui-btn layui-btn-sm" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
				<i class="layui-icon" style="line-height:30px">ဂ</i></a>
		</div>
		<div class="weadmin-body">
			<div class="layui-row">
				<form class="layui-form layui-col-md12 we-search">
					<div class="layui-inline">
						<input type="text" name="lname" placeholder="请输入车级名" autocomplete="off" class="layui-input">
					</div>
					<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
				</form>
			</div>
			<div class="weadmin-block">
				<button class="layui-btn layui-btn-danger" onclick="delAll('{:url(\'admin/car/leveldel\')}')"><i class="layui-icon"></i>批量删除</button>
				<button class="layui-btn" onclick="WeAdminShow('添加车级','{:url(\'admin/car/leveladd\')}')"><i class="layui-icon"></i>添加</button>
			</div>
			<table class="layui-table">
				<thead>
					<tr>
						<th>
							<div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
						</th>
						<th>ID</th>
						<th>排序</th>
						<th>名称</th>
						<th>是否显示</th>
						<th>操作</th>
				</thead>
				<tbody>
					
					{foreach $info as $v}
					
					<tr>
						<td>
							<div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id="{$v['lid']}"><i class="layui-icon">&#xe605;</i></div>
						</td>
						<td>{$v['lid']}</td>
						<td>
							<input type="text" name="sort" required lay-verify="required" autocomplete="off" class="layui-input" value="{$v['sort']}" style="width:30px" onblur="sort_change(this,'{:url(\'admin/car/level\')}',{$v['lid']})"> 
						</td>
						<td>{$v['lname']}</td>
						
						<td class="td-status">
							{eq name="$v['is_show']" value="1"}
							<span class="layui-btn layui-btn-normal layui-btn-xs">已启用</span>
							{else/}
							<span class="layui-btn layui-btn-normal layui-btn-xs layui-btn-disabled">已停用</span>
							{/eq}
						</td>
						<td class="td-manage">
							{eq name="$v['is_show']" value="1"}
							<a onclick="member_stop(this,'{:url(\'admin/car/level\')}',{$v['is_show']},{$v['lid']})" href="javascript:;" title="启用">
								<i class="layui-icon">&#xe601;</i>
							</a>
							{else/}
							<a onclick="member_stop(this,'{:url(\'admin/car/level\')}',{$v['is_show']},{$v['lid']})" href="javascript:;" title="停用">
								<i class="layui-icon">&#xe62f;</i>
							</a>
							{/eq}
							<a title="编辑" onclick="WeAdminShow('编辑','{:url(\'admin/car/leveledit\',[\'lid\'=>$v[\'lid\']])}')" href="javascript:;">
								<i class="layui-icon">&#xe642;</i>
							</a>
							<a title="删除" onclick="member_del({$v['lid']},'{:url(\'admin/car/leveldel\')}')" href="javascript:;">
								<i class="layui-icon">&#xe640;</i>
							</a>
						</td>
					</tr>
					
					{/foreach}
				</tbody>
			</table>
			<div class="page">
				<div>
					{$info|raw}
				</div>
			</div>
		</div>
		<script src="__STATIC__/admin/lib/layui/layui.js" charset="utf-8"></script>
    	<script src="__STATIC__/admin/static/js/eleDel.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>